﻿<%@ Page Language="C#"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>服务项目维护</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" type="text/css" href="../../../../WebPlugin/jquery-easyui/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="../../../../WebPlugin/jquery-easyui/themes/icon.css"/>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/JQueryCommon.js"></script>

    <script src="../../PageJS/BaseInfo/ServiceItemManager.js" type="text/javascript"></script>
</head>
<body class="easyui-layout">
    <div region="west" split="true" title="统计分类" style="width:280px;padding:1px;overflow:hidden;" >
        <div id="tool">
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="javascript:$('#statitemGird').datagrid('reload');">刷新</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="toolbar_statitem_add();">添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-edit" onclick="toolbar_statitem_alter();">修改</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="toolbar_statitem_del();">删除</a>
	    </div>
        <table id="statitemGird" class="easyui-datagrid" toolbar="#tool" fit="true" border="false" iconCls="icon-edit" singleSelect="true">
		   <thead>
			<tr>
				<th field="Code" width="80">代码</th>
				<th field="StatName" width="200" >分类名称</th>
			</tr>
		</thead>
	    </table>
	</div>
	<div region="center" title="服务项目列表" style="overflow:hidden;">
	    <div id="tool2">
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="grid_serviceitem_load();">全部显示</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="toolbar_service_add();">添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-edit" onclick="toolbar_service_alter();">修改</a>
	    </div>
        <table id="serviceitemGird" class="easyui-datagrid" toolbar="#tool2" fit="true" border="false" iconCls="icon-edit" singleSelect="true">
		   <thead>
			<tr>
				<th field="Code" width="80">代码</th>
				<th field="ItemName" width="200" >项目名称</th>
				<th field="StatCode" width="200" formatter="serviceitemFormatter">统计分类</th>
				<th field="Price" width="100" >价格</th>
				<th field="DeleteFlag" width="100" >是否删除</th>
			</tr>
		</thead>
	    </table>
	</div>
</body>

<%--弹出窗口--%>
<%--统计分类--%>
<div id="dlg-statitem" class="easyui-dialog" title="添加统计分类" style="width:400px;height:200px;padding:5px"
 buttons="#dlg-buttons" resizable="true" modal="true">
    <form id="formstatitem" method="post">
		<table>
           <tr>
                <td><label>代码:</label></td>
                <td><input id="formstatitemcode" class="easyui-validatebox" style="width:200px" type="text" name="Code" required="true"></input></td>
           </tr>
           <tr>
                <td><label>分类名称:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="StatName" required="true"></input></td>
           </tr>         
       </table>
       <input id="formstatitemtype" type="hidden" name="type" />
      </form>
	</div>
	<div id="dlg-buttons">
		<a href="#" class="easyui-linkbutton" onclick="dlg_statitem_confirm()">确定</a>
		<a href="#" class="easyui-linkbutton" onclick="dlg_statitem_close();">取消</a>
	</div>
<%--服务项目--%>
<div id="dlg-serviceitem" class="easyui-dialog" title="添加服务项目" style="width:400px;height:250px;padding:5px"
 buttons="#dlg-buttons2" resizable="true" modal="true">
    <form id="formserviceitem" method="post">
		<table>
           <tr>
                <td><label>代码:</label></td>
                <td><input id="formservicecode" class="easyui-validatebox" style="width:200px" type="text" name="Code" required="true"></input></td>
           </tr>
           <tr>
                <td><label>项目名称:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="ItemName" required="true"></input></td>
           </tr>
           <tr>
                <td><label>统计分类:</label></td>
                <td><input id="formservicestat" class="easyui-combobox" style="width:200px" type="text" name="StatCode" valueField="Code" textField="StatName" required="true"></input></td>
           </tr>  
           <tr>
                <td><label>统计分类:</label></td>
                <td><input id="formserviceitemtype" class="easyui-combobox" style="width:200px" type="text" name="ItemType" valueField="code" textField="name" required="true"></input></td>
           </tr>  
           <tr>
                <td><label>价格:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="Price" required="true"></input></td>
           </tr>  
           <tr>
                <td></td>
                <td><input id="formservicedel" type="checkbox">是否删除</input><input id="DeleteFlag" type="hidden" name="DeleteFlag" /></td>
           </tr>           
       </table>
       <input id="formservicetype" type="hidden" name="type" />
      </form>
	</div>
	<div id="dlg-buttons2">
		<a href="#" class="easyui-linkbutton" onclick="dlg_serviceitem_confirm();">确定</a>
		<a href="#" class="easyui-linkbutton" onclick="dlg_serviceitem_close();">取消</a>
	</div>
</html>
